<?php

/*
  | --------------------------------------------------------------------------------------------------
  | <corpo_agenda_mensal_view>
  |
  | Desenvolvedor:	Eduardo Sirangelo
  | E-mail:		sirangelos@ibest.com.br
  | Descrição:
  |	-
  | Quality is Everyting
  | --------------------------------------------------------------------------------------------------
 */
?>
<table cellspacing="0" class="calendar">
    
    <thead>
            <tr>
                    <th scope="col" class="black-cell"><span class="success"></span></th>
                    <th scope="col" class="week-end">Domingo</th>
                    <th scope="col">Segunda</th>
                    <th scope="col">Terça</th>
                    <th scope="col">Quarta</th>
                    <th scope="col">Quinta</th>
                    <th scope="col">Sexta</th>
                    <th scope="col" class="week-end">Sábado</th>
            </tr>
    </thead>
    
    <tbody>
            
        <tr>

            <th scope="row">&nbsp;</th>

            <td class="<?=$array_data[0]['class_line']?>">
                <?=$array_data[0]['link_add']?>
                <?=$array_data[0]['link_show']?>
                
                <?
                if(count($array_data[0]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[0]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[0]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[0]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[0]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>

            <td class="<?=$array_data[1]['class_line']?>">
                <?=$array_data[1]['link_add']?>
                <?=$array_data[1]['link_show']?>
                
                <?
                if(count($array_data[1]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[1]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[1]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[1]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[1]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[2]['class_line']?>">
                <?=$array_data[2]['link_add']?>
                <?=$array_data[2]['link_show']?>
                <?
                if(count($array_data[2]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[2]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[2]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[2]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[2]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[3]['class_line']?>">
                <?=$array_data[3]['link_add']?>
                <?=$array_data[3]['link_show']?>
                
                <?
                if(count($array_data[3]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[3]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[3]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[3]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[3]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[4]['class_line']?>">
                <?=$array_data[4]['link_add']?>
                <?=$array_data[4]['link_show']?>
                
                <?
                if(count($array_data[4]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[4]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[4]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[4]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[4]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[5]['class_line']?>">
                <?=$array_data[5]['link_add']?>
                <?=$array_data[5]['link_show']?>
                
                <?
                if(count($array_data[5]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[5]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[5]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[5]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[5]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[6]['class_line']?>">
                <?=$array_data[6]['link_add']?>
                <?=$array_data[6]['link_show']?>
                
                <?
                if(count($array_data[6]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[6]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[6]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[6]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[6]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
        </tr>
        
        <tr>

            <th scope="row">&nbsp;</th>

            <td class="<?=$array_data[7]['class_line']?>">
                <?=$array_data[7]['link_add']?>
                <?=$array_data[7]['link_show']?>
                
                <?
                if(count($array_data[7]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[7]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[7]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[7]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[7]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>

            <td class="<?=$array_data[8]['class_line']?>">
                <?=$array_data[8]['link_add']?>
                <?=$array_data[8]['link_show']?>
                
                <?
                if(count($array_data[8]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[8]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[8]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[8]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[8]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[9]['class_line']?>">
                <?=$array_data[9]['link_add']?>
                <?=$array_data[9]['link_show']?>
                
                <?
                if(count($array_data[9]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[9]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[9]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[9]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[9]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[10]['class_line']?>">
                <?=$array_data[10]['link_add']?>
                <?=$array_data[10]['link_show']?>
                
                <?
                if(count($array_data[10]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[10]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[10]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[10]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[10]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[11]['class_line']?>">
                <?=$array_data[11]['link_add']?>
                <?=$array_data[11]['link_show']?>
                
                <?
                if(count($array_data[11]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[11]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[11]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[11]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[11]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[12]['class_line']?>">
                <?=$array_data[12]['link_add']?>
                <?=$array_data[12]['link_show']?>
                
                <?
                if(count($array_data[12]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[12]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[12]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[12]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[12]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[13]['class_line']?>">
                <?=$array_data[13]['link_add']?>
                <?=$array_data[13]['link_show']?>
                
                <?
                if(count($array_data[13]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[13]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[13]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[13]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[13]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
        </tr>
        
        <tr>

            <th scope="row">&nbsp;</th>

            <td class="<?=$array_data[14]['class_line']?>">
                <?=$array_data[14]['link_add']?>
                <?=$array_data[14]['link_show']?>
                
                <?
                if(count($array_data[14]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[14]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[14]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[14]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[14]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>

            <td class="<?=$array_data[15]['class_line']?>">
                <?=$array_data[15]['link_add']?>
                <?=$array_data[15]['link_show']?>
                
                <?
                if(count($array_data[15]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[15]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[15]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[15]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[15]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[16]['class_line']?>">
                <?=$array_data[16]['link_add']?>
                <?=$array_data[16]['link_show']?>
                
                <?
                if(count($array_data[16]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[16]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[16]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[16]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[16]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[17]['class_line']?>">
                <?=$array_data[17]['link_add']?>
                <?=$array_data[17]['link_show']?>
                
                <?
                if(count($array_data[17]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[17]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[17]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[17]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[17]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[18]['class_line']?>">
                <?=$array_data[18]['link_add']?>
                <?=$array_data[18]['link_show']?>
                
                <?
                if(count($array_data[18]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[18]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[18]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[18]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[18]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[19]['class_line']?>">
                <?=$array_data[19]['link_add']?>
                <?=$array_data[19]['link_show']?>
                
                <?
                if(count($array_data[19]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[19]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[19]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[19]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[19]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[20]['class_line']?>">
                <?=$array_data[20]['link_add']?>
                <?=$array_data[20]['link_show']?>
                
                <?
                if(count($array_data[20]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[20]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[20]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[20]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[20]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
        </tr>
        
        <tr>

            <th scope="row">&nbsp;</th>

            <td class="<?=$array_data[21]['class_line']?>">
                <?=$array_data[21]['link_add']?>
                <?=$array_data[21]['link_show']?>
                
                <?
                if(count($array_data[21]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[21]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[21]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[21]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[21]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>

            <td class="<?=$array_data[22]['class_line']?>">
                <?=$array_data[22]['link_add']?>
                <?=$array_data[22]['link_show']?>
                
                <?
                if(count($array_data[22]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[22]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[22]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[22]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[22]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[23]['class_line']?>">
                <?=$array_data[23]['link_add']?>
                <?=$array_data[23]['link_show']?>
                
                <?
                if(count($array_data[23]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[23]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[23]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[23]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[23]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[24]['class_line']?>">
                <?=$array_data[24]['link_add']?>
                <?=$array_data[24]['link_show']?>
                
                <?
                if(count($array_data[24]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[24]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[24]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[24]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[24]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[25]['class_line']?>">
                <?=$array_data[25]['link_add']?>
                <?=$array_data[25]['link_show']?>
                
                <?
                if(count($array_data[25]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[25]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[25]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[25]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[25]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[26]['class_line']?>">
                <?=$array_data[26]['link_add']?>
                <?=$array_data[26]['link_show']?>
                
                <?
                if(count($array_data[26]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[26]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[26]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[26]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[26]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[27]['class_line']?>">
                <?=$array_data[27]['link_add']?>
                <?=$array_data[27]['link_show']?>
                
                <?
                if(count($array_data[27]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[27]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[27]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[27]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[27]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
        </tr>
        
        <tr>

            <th scope="row">&nbsp;</th>

            <td class="<?=$array_data[28]['class_line']?>">
                <?=$array_data[28]['link_add']?>
                <?=$array_data[28]['link_show']?>
                
                <?
                if(count($array_data[28]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[28]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[28]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[28]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[28]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>

            <td class="<?=$array_data[29]['class_line']?>">
                <?=$array_data[29]['link_add']?>
                <?=$array_data[29]['link_show']?>
                
                <?
                if(count($array_data[29]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[29]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[29]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[29]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[29]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[30]['class_line']?>">
                <?=$array_data[30]['link_add']?>
                <?=$array_data[30]['link_show']?>
                
                <?
                if(count($array_data[30]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[30]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[30]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[30]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[30]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[31]['class_line']?>">
                <?=$array_data[31]['link_add']?>
                <?=$array_data[31]['link_show']?>
                
                <?
                if(count($array_data[31]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[31]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[31]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[31]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[31]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[32]['class_line']?>">
                <?=$array_data[32]['link_add']?>
                <?=$array_data[32]['link_show']?>
                
                <?
                if(count($array_data[32]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[32]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[32]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[32]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[32]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[33]['class_line']?>">
                <?=$array_data[33]['link_add']?>
                <?=$array_data[33]['link_show']?>
                
                <?
                if(count($array_data[33]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[33]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[33]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[33]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[33]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
            <td class="<?=$array_data[34]['class_line']?>">
                <?=$array_data[34]['link_add']?>
                <?=$array_data[34]['link_show']?>
                
                <?
                if(count($array_data[34]['content']) > 0) {
                    ?>
                    <ul class="events">
                        <?
                        foreach($array_data[34]['content']['lista_eventos'] as $key => $value) {
                            echo $value;
                        }
                        ?>
                    </ul>
                    <?
                    if($array_data[34]['content']['extra_eventos'] > 0) {
                    ?>
                    <div class="more-events">
                            Mais <?=$array_data[34]['content']['extra_eventos']?> agrupamentos
                            <ul>
                                <?
                                foreach($array_data[34]['content']['lista_eventos_full'] as $key_full => $value_full) {
                                    echo $value_full;
                                }
                                ?>
                            </ul>
                    </div>
                    <?
                    }
                }
                ?>
            </td>
            
        </tr>
            
    </tbody>
    
</table>